//
//  WSJMeVC.m
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/12/2.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJMeVC.h"
#import "WSJNavController.h"
#import "WSJLoginVC.h"
#import "WSJLoginVC.h"
@interface WSJMeVC ()

@end

@implementation WSJMeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [self presentViewController:[WSJLoginVC new] animated:YES completion:nil];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loginNoti) name:UserLoginNotification object:nil];
}

- (void)loginNoti{
   
}

- (void)configUI{
   
    
    
    self.tableView.loading = YES;
  
    
    self.tableView.retryBlock = ^(){
        NSLog(@"重新加载>>>");
        [WSJLoadingView showLoadingInView:self.view];
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [WSJLoadingView hideLoadingForView:self.view];
            [WSJLoadFailedView showLoadFailedInView:self.view retryHandle:^{
//                self.tableView.retryBlock();
            }];
        });
        
    };
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        self.tableView.loading = NO;
        [self.tableView reloadData];
    });
    
}

@end
